<?php
$this->pageTitle     = 'Tin tức - ' . Option::getItem('site_name');
$this->meta_desc     = 'Tin tức';
$this->meta_keywords = 'Tin tức';
?>
<div class="content">
    <div class="main-wrap">
        <?php foreach ($posts as $post): ?>
            <div class="box-news ">
                <div class="row-fluid">
                    <a href="<?php echo $post->publicUrl ?>" title="<?php echo $post->title ?>">
                        <img class="span5" src="<?php echo $post->getPublicPhoto(386, 265) ?>" alt="<?php echo $post->url ?>"/>
                    </a>
                    <div class=" span7 box-description">
                        <h3 class="title-product">
                            <a href="<?php echo $post->publicUrl ?>" title="<?php echo $post->title ?>">
                                <?php echo $post->title ?>
                            </a>
                        </h3>
                        <div class="n-sum n-desc border-solid-footer">
                            <?php echo MyUtil::word_limiter($post->description, 160) ?>
                        </div>
                        <div class="view-more">
                            <a class=" btn btn-primary" href="<?php echo $post->publicUrl ?>" title="<?php echo $post->title ?>">
                                Xem
                            </a>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        <?php endforeach; ?>
        <div class="page">
            <?php
            $this->widget('CLinkPager', array(
                'pages'         => $pages,
                'header'        => '',
                'nextPageLabel' => 'Sau',
                'prevPageLabel' => 'Trước',
            ))
            ?>
        </div>
    </div>
</div>